home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / PredatorPrey / HelpCloseProc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-22  |  925 b   |  34 lines  |  [TEXT/KAHL]

  1. /************************************************************************************/
  2. /*    HelpCloseProc                                                                    */
  3. /************************************************************************************/
  4.  
  5. #include "HelpCloseProc.h"
  6. /*#include "Globals.h"*/
  7. #ifndef __C14__
  8. #include    "C14 Calculator.h"
  9. #endif
  10. #include "HelpWindowProc.h"
  11.  
  12. void    HelpCloseSeg()    {}        /*  for reference in "UnloadSeg()" calls    */
  13.  
  14. short HelpCloseProc ()
  15. {
  16.     short        HCRetCode = 99;
  17.     short        item;
  18.  
  19.     if (windTbl[1].windPtr == 0)                        /* if window already closed    */
  20.         goto ENDING;                                    /* skip this whole thing    */
  21.         
  22.  
  23.     LDispose (helpList);                                /* delete the list            */
  24.  
  25.     windTbl[1].windPathRefNum = 0;                        /* indicate file closed        */
  26.     CloseWindow(windTbl[1].windPtr);                    /* close the window            */
  27.     windTbl[1].windPtr = 0;                                /* indicate closed            */
  28.     windTbl[1].windTEChanged = FALSE;                    /* initialize                */
  29.  
  30.  
  31. ENDING:
  32.     return    HCRetCode;
  33.  
  34. }